package com.qububu.db.dao;

import java.util.List;
import java.util.Map;

import com.qububu.base.dao.BaseDao;
import com.qububu.play.common.dto.ArticleDetailMsgDto;
import com.qububu.play.common.dto.ArticleInfoDto;

public interface PlayArticleInfoDao extends BaseDao{

	public List<ArticleInfoDto> getArticleListByArticleType(int type, int pageNum);
	
	public List<ArticleInfoDto> getArticleListByActionId(int type, String actionId, int pageNum);

	public long doAddArticle(ArticleInfoDto articleInfo, ArticleDetailMsgDto articleMsg);
	
	public boolean doDeleteArticle(String articleId);

	public List<ArticleDetailMsgDto> getArticleDetailsByMessageId(int articleId, int pageNum);

	public Map<String, Object> getFirstArticleAndSomeCommentByArticleId(int articleId);
	
	public long doAddArticleMessage(ArticleDetailMsgDto articleMessage);

	public List<ArticleDetailMsgDto> getArticleInfoReplyListByMsgId(int msgId);
}
